@font-face {
    font-family: 'CaviarDreams';
    src: url(/Fuentes/caviar_dreams/CaviarDreams.ttf);
}
*{
    margin: 0;
    padding: 0;
}
html, body{
    height: 100%;
}
body{
    background-color: #e4f4fd;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:    "Header"
                            "Main"
                            "Footer";
    box-sizing: border-box;
    font-family: CaviarDreams;
}
header{
    grid-area: Header;
    height: 220px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    min-height: 300px;
    font-weight: bold;
}
header img{
    position: absolute;
    top: 5%;
    height: 17%;
    animation-name: Entrada-img;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
header img:hover{
    cursor: pointer;
}
.Titulo{
    position: absolute;
    left: 13%;
    color: black;
    font-size: 25px;
    animation-name: Entrada-Titulo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
.Titulo2{
    position: absolute;
    left: 13%;
    color: black;
    font-size: 25px;
    animation-name: Entrada-Titulo2;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
#Listado{
    text-align: center;
    position: absolute;
    width: 24%;
    top: 25%;
    animation-name: Entrada-Lista;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    font-size: 20px;
}
#Listado ul{
    list-style-type: none;
    display: flex;
}
.Header-Botones{
    text-decoration: none;
    color: black;
    padding: 10px;
    border-radius: 20px;
}
.Header-Botones:hover{
    transition-duration: 0.5s;
    font-size: 22px;
    background-color: #9edbff;
}
#BotonFormulario{
    position: absolute;
    top: 95px;
    left: 77%;
    width: 8%;
    height: 8%;
    text-align: center;
    background-color: #c9e9fc;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    animation-name: INICIARSESION;
    animation-duration: 1s;
    cursor: pointer;
    background-color: #9edbff;
    animation-fill-mode: forwards;
}
#BotonFormulario:hover{
    background-color: #95d3f7;
}
#BarraBusqueda{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -20px;
    right: 500px;
    animation-name: Barra;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
#InputBarra{
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 35px;
}
#BotonBarra{
    padding: 18px 20px;
    margin-left: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#BotonBarra:hover {
    background-color: #0056b3;
}

    /*MAIN*/

main{
    grid-area: Main;
    background-image: linear-gradient(180deg, #e4f4fd, #95d3f7);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 40px; /* Espacio entre el slider y la descripción */
}

.slider {
    width: 59%; /* Ajustar el ancho del slider */
    overflow: hidden;
    position: relative;
    display: flex;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    transition: transform 0.5s ease-in-out;
    animation: slide 8s infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    45% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    70% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    95% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

.descripcion {
    text-align: center;
    font-size: 20px;
    width: 40%; /* Ajustar el ancho de la descripción */
    max-width: 250px;
    padding: 20px; 
    background-color: grey;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    color: white;
    padding-top: 5.5%;
    padding-bottom: 5.5%;
}

/*FOOTER*/

footer{
    grid-area: Footer;
    display: flex;
    justify-content: center;
    font-weight: bold;
    background-color: #95d3f7
}
footer div{
    margin: 3%;
    color: black;
    font-size: 20px;
}
footer div a{
    text-decoration: none;
    color: black;
}
footer div a:hover{
    color: grey;
}   
@keyframes Entrada-img {
    0%{
        left: -300px;
    }
    100%{
        left: 4%;
    }
}
@keyframes Entrada-Titulo {
    0%{
        top: -300px;
    }
    100%{
        top: 11%;
    }
}
@keyframes Entrada-Titulo2 {
    0%{
        top: -30px;
    }
    100%{
        top: 15%;
    }
}
@keyframes Entrada-Lista {
    0%{
        left: -300px;
    }
    100%{
        left: 4%;
    }
}
@keyframes INICIARSESION {
    0%{
        top: -300px;
    }
    100%{
        top: 95px;
        left: 77%;
    }
}
@keyframes Barra {
    0%{
        top: -300px;
    }
    100%{
        top: -20px;
    }
}

@media screen and (max-width: 750px) {
    .container {
        flex-direction: column;
    }
    .slider, .descripcion {
        width: 100%;
        max-width: 750px;
        margin: 4%;
    }
}

@media (max-width: 600px) {
    header img{
        position: absolute;
        top: 9%;
        width: 20%;
        height: auto;
    }
    .Titulo, .Titulo2{
        position: absolute;
        left: 26%;
    }
    #Listado{
        position: absolute;
        top: 22%;
    }
    #BotonFormulario{
        position: absolute;
        margin-top: 2%;
        width: 20%;
    }
    #BarraBusqueda{
        position: relative;
        right: 100%;
        top: -100px;
        width: 200%;
    }
    @keyframes Barra {
        0%{
            top: -300px;
        }
        100%{
            right: 100%;
            top: -100px;
        }
    }

}
@media (min-width: 600px) and (max-width: 1000px) {
    header img{
        position: absolute;
        top: 9%;
        width: 20%;
        height: auto;
    }
    .Titulo, .Titulo2{
        position: absolute;
        left: 26%;
    }
    #Listado{
        position: absolute;
        top: 28%;
    }
    #BotonFormulario{
        position: absolute;
        margin-top: 2%;
        width: 20%;
    }
    #BarraBusqueda{
        position: relative;
        right: 100%;
        top: -100px;
        width: 200%;
    }
    @keyframes Barra {
        0%{
            top: -300px;
        }
        100%{
            right: 100%;
            top: -100px;
        }
    }
}